Least privileged operating system

ABSTRACT

A method and system encrypts data in a least privileged operating system. The method includes determining a first encryption scheme to be used with software code to be mapped to a virtual memory. The method includes mapping a first portion of the virtual memory with the software code for access by a processor using the first encryption scheme. The method includes receiving a call for an entry point of the operating system. The method includes determining a second encryption scheme to be used with the entry point when mapped to the virtual memory. The method includes mapping a second portion of the virtual memory for executing entry point code associated with the entry point for access by the processor using the second encryption scheme. The processor executing the software code is permitted to access only data from the first and second portions of the virtual memory.

PRIORITY CLAIM

The present application claims priority to U.S. application Ser. No. 14/546,763 filed on Nov. 18, 2014 and entitled “Least Privileged Operating System,” the entire disclosure of which is incorporated herein by reference.

BACKGROUND

Typical computer operating systems have access to all information and resources that they manage at all times. This remains the case even though only a subset of the information and resources are needed by the operating system at any given time. As a result, if any operating system entry point is compromised, the entire operating system may be rendered unstable or crash.

SUMMARY OF THE INVENTION

The present invention relates to a method comprising: determining a first encryption scheme to be used with software code to be mapped to a virtual memory; mapping a first portion of the virtual memory with the software code for access by a processor using the first encryption scheme; receiving a call for an entry point of the operating system; determining a second encryption scheme to be used with the entry point when mapped to the virtual memory; and mapping, after receiving the call, a second portion of the virtual memory containing data for executing entry point code associated with the entry point for access by the processor using the second encryption scheme, wherein the processor executing the software code is permitted to access only data from the first and second portions of the virtual memory.

The present invention relates to a system comprising: a memory; a processor; and a memory management unit performing the operations of: determining a first encryption scheme to be used with software code to be mapped to the virtual memory; mapping a first portion of the virtual memory with the software code for access by a processor using the first encryption scheme; receiving a call for an entry point of the operating system; determining a second encryption scheme to be used with the entry point when mapped to the virtual memory; and mapping, after receiving the call, a second portion of the virtual memory containing data for executing entry point code associated with the entry point for access by the processor using the second encryption scheme, wherein the processor executing the software code is permitted to access only data from the first and second portions of the virtual memory.

The present invention relates to a non-transitory computer-readable storage medium storing a set of instructions that are executable by a processor, the set of instructions, when executed by the processor, causing the processor to perform operations comprising: determining a first encryption scheme to be used with software code to be mapped to the virtual memory; mapping a first portion of the virtual memory with the software code for access by a processor using the first encryption scheme; receiving a call for an entry point of the operating system; determining a second encryption scheme to be used with the entry point when mapped to the virtual memory; and mapping, after receiving the call, a second portion of the virtual memory containing data for executing entry point code associated with the entry point for access by the processor using the second encryption scheme, wherein the processor executing the software code is permitted to access only data from the first and second portions of the virtual memory.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 schematically illustrates a computing system using an exemplary operating system that is configured according to the least privileged principle.

FIG. 2 shows an exemplary method for mapping and unmapping areas of operating system virtual memory of the system of FIG. 1 in order to implement a least privileged operating system.

FIG. 3 shows maps of a memory area of a system such as the exemplary system of FIG. 1 at various stages during the performance of the exemplary method of FIG. 2.

DETAILED DESCRIPTION

The exemplary embodiments may be further understood with reference to the following description and the related appended drawings, wherein like elements are provided with the same reference numerals. Specifically, the exemplary embodiments relate to methods and systems for improving the security of a computing system through the use of a least privileged operating system.

Typically, computer operating systems have access to all information and resources of a computing system. This full access for the operating system (“OS”) remains the case even though a subset of the information and resources may be required at any given time (e.g., for a given OS entry point). If a given entry point or application programming interface (“API”) operates inappropriately, whether due to an error or to an intrusion such as a virus or other malicious attack, other, unrelated data may also be corrupted. This may bring the OS into an unstable state, and may ultimately result in the OS crashing.

The exemplary embodiments may prevent such instability through the use of a least privileged principle. The least privileged principle requires that any given module (e.g., a process, program, user, etc.) be able to access only information and resources that are required for its legitimate purpose. As will be described in greater detail below, implementation of this principle will provide better stability and security for computing systems that are configured accordingly. Furthermore, the exemplary embodiments provide an encryption mechanism for increased security for the least privileged principle as a whole or individually for each module.

FIG. 1 schematically illustrates an exemplary system 100. The system 100 includes data storage 110 (e.g., a hard drive, flash drive, or other storage mechanism) storing software, program data, and other data that may typically be stored in a permanent storage of a computing device. The data storage 110 may store, among other data, an exemplary operating system 120 that may operate in accordance with the least privileged principle, as will be described in further detail hereinafter. The system 100 also includes processor 130, which may be any type of microprocessor known in the art and capable of executing the operating system 120 and other software. The processor 130 includes a processing core 135, though it will be known to those of skill in the art that processors including more than one processing core are also possible. The system 100 also includes a memory 140 (e.g., random-access memory) used in the active execution of software in the typical manner that is known to those of skill in the art. One portion of the memory 140 may comprise OS virtual space 145 for the OS 120. The OS virtual space 145 may include active memory for executing the code of the OS 120 as well as for code that is invoked by various OS entry points.

The system 100 also includes a memory management unit (“MMU”) 150. Commonly, and in the exemplary system 100, the MMU 150 may be integrated with the processor 130, but those of skill in the art will understand that in alternative embodiments the MMU 150 may be a separate component. In the exemplary embodiments, the MMU 150 is used to map and unmap areas of the memory 140 for the operating system 120. Those skilled in the art will understand that MMU 150 is typically implemented as a hardware component executing firmware or other types of instructions. The hardware component may be a portion of the processor 130 or may also be implemented as a separate integrated circuit in communication with the processor 130. The MMU 150 may, among other tasks, control the OS virtual space 145 at a page level. The MMU 150 may also configure and refer to an MMU translation table 155, stored in the memory 140, that may enable the MMU 150 to translate requests for memory access, which typically reference a virtual memory address, to physical memory addresses of the requested memory. In some embodiments, the system 100 may also include a translation lookaside buffer (“TLB”) cache, which may be memory local to the MMU 150 storing a portion of the contents of the MMU translation table 150 in order to speed up access to translation table information.

The system 100 may further include an encryption module 160. In a substantially similar manner as the MMU 150, in the exemplary system 100, the encryption module 160 may be integrated with the processor 130. However, those of skill in the art will understand that in alternative embodiments, the encryption module 160 may be a separate component. Furthermore, when the MMU 150 is a separate component, the encryption module 160 may be integrated into this separate component or embodied as a further separate component.

In the exemplary embodiments, the encryption module 160 is used to determine an encryption scheme to be used for the areas of the memory 140 that are mapped by the MMU 150 for the operating system 120. That is, the areas mapped through the MMU 150 may have an encryption key assigned thereto by the encryption module 160 so that all information written to the area is encrypted using the encryption key and all information read in the area is decrypted using the same encryption key. To provide increased security, the encryption module 150 may assign each mapped area to a unique encryption key. In this manner, unauthorized accessing of the memory 140 may be prevented such as from malicious software that observes the content of memory. For example, the malicious software may bypass security measures to access the information stored in the memory 140 (e.g., login/password to enter the system 100) but ultimately cannot interpret the information due to the encryption scheme.

Again, in a substantially similar manner as the MMU 150, those skilled in the art will understand that encryption module 160 is typically implemented as a hardware component executing firmware or other types of instructions. The hardware component may be a portion of the processor 130 or may also be implemented as a separate integrated circuit in communication with the processor 130. The encryption module 160 may configure and refer to an encryption table 165, stored in the memory 140, that may indicate the encryption scheme that is being used or available encryption schemes that may be available for use. Accordingly, the information of the encryption table 165 may be used in conjunction with the MMU 150 in translating the requests for memory access. That is, once the location in the memory 140 is identified, the data stored therein may be retrieved and decrypted for use by the operating system 120. However, it should be noted that the use of the encryption table 165 stored in the memory 140 is only exemplary. In an alternative embodiment, the encryption module 160 may include an encryption buffer cache that is local to the encryption module 160 to speed up access to the encryption information as well as provide yet another security measure as only the encryption module 160 has access to this encryption information.

It should be noted that the exemplary embodiments may utilize any encryption scheme or type to provide this feature. For example, the encryption scheme may utilize the encryption key. The encryption key may utilize, for example, a symmetric key algorithm where a common key is used in encrypting and decrypting the data. Specifically, if the system 100 were to be embodied in a single device, the symmetric key algorithm may be used as only the device itself via the processor 130 has access to the symmetric key. If the system 100 were embodied as multiple components such that the processor 130 is a separate component from the memory 140 and if multiple processors 130 were capable of accessing the memory 140, a public-key cryptography protocol may be used in which a public or first key is used in encrypting the information but a private or second key known to the authorized users/devices is used in decrypting the information.

Examples of the system 100 may include personal computers (PCs), tablet computers, phablets, smart phones, embedded devices, etc. It should also be noted that while the system 100 shows the components 110, 130 and 140 as three separate components, one or more of the components may be implemented on a single hardware device, e.g., integrated circuit, printed circuit board, etc., and one or more of the components may also be implemented in software or virtually.

FIG. 2 illustrates an exemplary method 200 for memory mapping and unmapping to execute the OS 120 in accordance with the least privileged principle, to improve the stability and security of the system 100. FIG. 3 shows contents of the memory 130 of the system 100 at various stages during the performance of the method 200. FIGS. 2 and 3 will be described hereinafter in conjunction with one another.

FIG. 3 shows the OS virtual space 145 at a first state 310, a second state 320, a third state 330 and a fourth state 340 of the system 100. In the various states shown in FIG. 3, areas of the OS virtual space 145 that are mapped and accessible by the OS 120 are designated using a white background and areas of the OS virtual space 145 that are unmapped from the perspective of the OS 120 are designated using a gray background. It will be apparent to those of skill in the art that the precise locations of the various areas in the memory 130 shown in FIG. 3 are only exemplary and that these locations may vary in other embodiments.

Prior to the initialization of the system 100, the OS virtual space 145 is in a first state 310. In this state, the virtual space 145 consists solely of unmapped area 312. In step 210, the initialization process for the system 100 is initiated. This may occur due to any prompting known in the art, such as a user initiating the system 100 or the system 100 being initiated due to an automated process. In step 220, the MMU 150 maps portions of the OS virtual space 145 to be accessible by the processing core 135 in executing code of the OS 120. It will be apparent to those of skill in the art that, at this point and elsewhere in the method 200, mapping or unmapping areas of the OS virtual space 145 for access by the processing core 135 may involve altering entries in the MMU translation table 155 entries and/or any TLB that may be present in the system 100. In other words, code of the OS 120 to be executed by the processing core 135 is already present in memory 140, but is simply not “visible” to the processing core 135 prior to this step.

In step 225, the encryption module 160 determines the encryption scheme to be used in storing the OS code. For purposes of this description, the encryption scheme may be a first encryption scheme. As described above, the encryption scheme may utilize an encryption key based upon, for example, the encryption table 165. Accordingly, the OS code may be encrypted based upon the encryption key that is selected for use for this particular mapped area in the memory 140. The encryption module 160 may further store the first encryption scheme being used for later decryption purposes such as in the encryption table 165.

In step 230, the OS 120 is initiated. At this point, the state of the OS virtual space 145 is shown in the second state 320 of FIG. 3. In the second state 320, an area containing OS code 322 has been mapped by the MMU 150 to be accessible by the processing core 135, and OS code 322 has been stored. Again, the OS code 322 has been encrypted using the encryption key identified by the encryption module 160. The remainder of OS virtual space 145 remains unmapped area 312.

In step 240, a first OS entry point is called. An entry point may be, for example, an API or a system call, and may relate to any hardware or software of the system 100. The calling of the first entry point in step 240 may trigger step 250, in which the MMU 150 maps, for the OS 120, a portion of OS virtual space 145 containing first entry point data 332. In step 255, as another portion of the memory 140 is being mapped by the MMU 150 for the first entry point, the encryption module 160 may encrypt the first entry point data 332. As a new mapped area, the encryption module 160 may determine a unique encryption scheme (different from the encryption scheme of the OS code 322) to be used in encrypting the first entry point data 332. That is, a second encryption scheme may be used for the first entry point data 332. The second encryption scheme for the first entry point data 332 may also be stored for later decryption purposes. Thereafter, this may result in the third state 330 of OS virtual space 145, as shown in FIG. 3. In the third state 330, the portion of the OS virtual space 145 containing OS code 322 continues to be mapped (and encrypted with the first encryption scheme), and, additionally, the portion of the OS virtual space 145 containing first entry point data 322 (and encrypted with the second encryption scheme) has been mapped as noted above. The remainder of OS virtual space 145 remains unmapped area 312.

It should be noted that the use of two separate and different encryption schemes for the OS code 322 and the first entry point data 332 is only exemplary. Although using different encryption schemes may further increase security, as the first entry point data 332 may be linked to the OS code 322, a common encryption scheme may be used.

Once steps 240 and 250 have been completed, the OS entry point that was called in step 240 may be performed. It will be apparent to those of skill in the art that the specific operations involved in such performance may vary depending on the specific nature of the first OS entry point. This may include, for example, executing a portion of the code of the OS 120, performing a call to a resource, accessing device driver code, etc. Because only the portions of the OS virtual space 145 containing the OS code 322 and the first entry point data 332 are mapped, those are the only portions of the OS virtual space 145 that are accessible to the first OS entry point or to the OS 120 itself. As a result, if the OS 120, as executed by the processing core 135, attempts to access data unrelated to the first OS entry point, the MMU 150 will generate an exception and stop the access to the requested data before corruption can occur. It will be apparent to those of skill in the art that this may be in accordance with standard functionality of a MMU such as the MMU 150, and that the MMU 150 therefore need not be specially configured to prevent such access. In this manner, the OS 120 may operate in accordance with the least privileged principle: the only data accessible to the OS 150 is data that is legitimately required by the OS 150 for the performance of its current tasks.

Furthermore, the entry point being called and performed in steps 240 and 250 may also entail using the encryption feature of the exemplary embodiments. Accordingly, these operations may utilize the first and second encryption schemes for the OS code 322 and the first entry point data 332, respectively. That is, when the OS 120 is to access data related to the first entry point data 332 from the memory 140, the OS 120 may be provided the second encryption scheme such that the data retrieved therefrom is correctly decrypted. When the OS 120 is to access data related to the OS code 322 from the memory 140, the OS 120 may be provided the first encryption scheme such that the data retrieved therefrom is correctly decrypted.

Once the performance of the first OS entry point has been completed, in accordance with the nature of the first OS entry point, in step 260 the MMU unmaps, for access by the processing core 135, the portion of OS virtual space 145 containing the first entry point data 332. This may result the OS virtual space 145 returning to the second state 320, as shown in FIG. 3. As was the case above, in the second state 320, the area containing OS code 322 remains having been mapped by the MMU 150 for access by the processing core 135. Therefore, OS code 322 remains resident therein. The remainder of OS virtual space 145 is unmapped area 312, including the area that contained first entry point data 332.

In step 270, a second OS entry point is called. The second entry point, like the first entry point discussed above, may be, for example, an API and may relate to any hardware or software of the system 100. The calling of the second entry point in step 270 may trigger step 280, in which the MMU 150 maps, for access by the processing core 135, a portion of OS virtual space 145 containing second entry point data 342. In a substantially similar manner as step 255, the second entry data point 342 being mapped to the memory 140 may trigger the encryption module 160 encrypting the second entry data point 342 using a third encryption scheme. However, it is again noted that the third encryption scheme being a unique and different encryption scheme from the first encryption scheme is only exemplary and may be a common one due to their association or link. This may result in the fourth state 340 of OS virtual space 145, as shown in FIG. 3. In the fourth state 340, the portion of the OS virtual space 145 containing OS code 322 continues to be mapped (and encrypted with the first encryption scheme), and, additionally, the portion of the OS virtual space 145 containing second entry point data 342 (and encrypted with the third encryption scheme) has been mapped as noted above. The remainder of OS virtual space 145 remains unmapped area 312, including the area that contained first entry point data 332. As discussed above with reference to the first entry point, once steps 270 and 280 have been performed, the second OS entry point may be performed. Again, the decryption process may be utilized in which the first and third encryption schemes may be used.

Once the performance of the second OS entry point has been completed, in accordance with the nature of the second OS entry point, in step 290 the MMU unmaps, for access by the processing core 135, the portion of OS virtual space 145 containing the second entry point data 342. This may result the OS virtual space 145 returning to the second state 320, as shown in FIG. 3. As was the case above, in the second state 320, the area containing OS code 322 remains been mapped by the MMU 150 for access by the processing core 135 during execution of the OS 120, and OS code 322 remains resident therein. The remainder of OS virtual space 145 is unmapped area 312, including the area that contained second entry point data 342.

Once termination of the OS 120 is triggered (which may be due to any cause, such as a manual or automatic shutdown), in step 295, the MMU unmaps the memory area containing OS code 322 from the OS virtual space 145. As noted above with reference to step 220, the unmapping of this area of the OS virtual space 145 may involve reverting MMU translation table entries and/or translation lookaside buffers to their original values, as is known in the art. Once this step has been performed, the OS virtual space 145 has been returned to the first state 310, in which the entire OS virtual space 145 encompasses unmapped area 312. Following step 295, performance of the method 200 is complete. In other embodiments, no shutdown step may be performed, and the system 100 may remain active at all times.

It should be noted that the encryption scheme being selected may be based upon or independent from the area of the memory 140 being mapped. For example, if another portion of data is to be stored in the memory 140 in the same space as the first entry point data 332, the encryption module may or may not utilize the second encryption scheme. That is, the encryption module may select the second encryption scheme based upon the mapped location of the area 140. The encryption module may alternatively select a wholly different encryption scheme although stored in the mapped location of the area 140 corresponding to the first entry point data 332.

It will be apparent to those of skill in the art that a typical real-world implementation of an operating system may include far more than the two entry points discussed above, and that there may be a similar state to the states 330 and 340 described above corresponding to each additional OS entry point while also incorporating respective unique encryption schemes. It will be further apparent to those of skill in the art that the entry points need not be accessed in a particular sequence, and that the order of operations (e.g., initialize system, load OS, first OS entry point, second OS entry point, terminate OS) described above with reference to FIGS. 2 and 3 is only one exemplary set of operations. It will be further apparent to those of skill in the art that transitioning from the third state 330 to the fourth state 340 may occur due to any number of prompts, such as execution of new code, user inputs, context switches, etc.

The exemplary embodiments described above with reference to FIGS. 1-3 may enable an MMU to map areas of OS virtual memory for the OS on an as-needed basis and unmap the areas after they are no longer needed. The result of such an implementation may be an operating system that operates in accordance with the least privileged principle, i.e., an OS that only has access to a minimal set of resources that are legitimately required for the operations it is carrying out at any given time. A computing system incorporating an OS that operates according to this principle may have greater security and stability than a computing system incorporating a typical operating system that has access to all resources at all times.

Those of skill in the art will understand that the above-described exemplary embodiments may be implemented in any number of matters, including as a software module, as a combination of hardware and software, etc. For example, the exemplary method 200 may be embodied in a program stored in a non-transitory storage medium and containing lines of code that, when compiled, may be executed by a processor.

It will be apparent to those skilled in the art that various modifications may be made to the exemplary embodiments, without departing from the spirit or the scope of the invention. Thus, it is intended that the present invention cover modifications and variations of this invention provided they come within the scope of the appended claims and their equivalents. 

What is claimed is:
 1. A method, comprising: determining a first encryption scheme to be used for encrypting software code stored in a first portion of a virtual memory; mapping the first portion of the virtual memory storing the software code for access by a processor executing an operating system, wherein the virtual memory comprises the first portion of the virtual memory and a plurality of further portions of the virtual memory and wherein the plurality of further portions of the virtual memory remain unmapped; receiving a call for an entry point of the operating system; determining a second encryption scheme to be used for encrypting the entry point and data for executing the entry point stored in a second portion of the virtual memory, wherein the second portion of the virtual memory is one of the plurality of further portions of the virtual memory; and mapping, after receiving the call, the second portion of the virtual memory for access by the processor executing the operating system, wherein the remaining plurality of further portions of the virtual memory remain unmapped, wherein the processor executing the operating system is only permitted to access data from the first portion of the virtual memory based on the mapping and the first encryption scheme and data from the second portion of the virtual memory based on the mapping and the second encryption scheme and wherein the processor executing the operating system is not permitted to access the plurality of further portions of the virtual memory that remain unmapped.
 2. The method of claim 1, further comprising: unmapping the second portion of the virtual memory when the execution of the entry point code is completed, wherein, after the unmapping, the processor executing the operating system is only permitted to access data from the first portion of the virtual memory based on the mapping and the first encryption scheme.
 3. The method of claim 2, further comprising: receiving a further call for a further entry point of the operating system, wherein the further entry point and data for executing the further entry point is stored in a third portion of the virtual memory and wherein the third portion of the virtual memory is one of the plurality of further portions of the virtual memory; determining a third encryption scheme to be used for encrypting the further entry point and the data for executing the further entry point; and mapping, after receiving the further call, the third portion of the virtual memory for access by the processor executing the operating system wherein the remaining plurality of further portions of the virtual memory remain unmapped, wherein the processor executing the operating system is only permitted to access data from the first portion of the virtual memory based on the mapping and the first encryption scheme and data from the third portion of the virtual memory based on the mapping and the third encryption scheme and wherein the processor executing the operating system is not permitted to access the plurality of further portions of the virtual memory that remain unmapped.
 4. The method of claim 3, wherein the first and third encryption schemes are one of unique from one another and common to one another.
 5. The method of claim 1, further comprising: generating an exception, if the processor attempts to access data that is not mapped.
 6. The method of claim 1, wherein the first and second encryption schemes are one of unique from one another and common to one another.
 7. The method of claim 1, wherein the first and second encryption schemes utilize first and second encryption keys, respectively.
 8. The method of claim 7, wherein the first and second encryption keys are based upon one of a symmetric key algorithm and a public key protocol.
 9. The method of claim 8, wherein, when with the public key protocol, the processor utilizes a first private key and a second private key to decrypt the software code and the entry point, respectively.
 10. The method of claim 1, wherein the virtual memory comprises a portion of a random access memory.
 11. A system, comprising: a memory; a processor; and a memory management unit performing the operations of: determining a first encryption scheme to be used for storing software code in a first portion of a virtual memory; mapping the first portion of the virtual memory storing the software code for access by a processor executing an operating system, wherein the virtual memory comprises the first portion of the virtual memory and a plurality of further portions of the virtual memory and wherein the plurality of further portions of the virtual memory remain unmapped; receiving a call for an entry point of the operating system; determining a second encryption scheme to be used for encrypting the entry point and data for executing the entry point stored in a second portion of the virtual memory, wherein the second portion of the virtual memory is one of the plurality of further portions of the virtual memory; and mapping, after receiving the call, the second portion of the virtual memory for access by the processor executing the operating system wherein the remaining plurality of further portions of the virtual memory remain unmapped, wherein the processor executing the operating system is only permitted to access data from the first portion of the virtual memory based on the mapping and the first encryption scheme and data from the second portion of the virtual memory based on the mapping and the second encryption scheme and wherein the processor executing the operating system is not permitted to access the plurality of further portions of the virtual memory that remain unmapped.
 12. The system of claim 11, wherein the operations further comprise: unmapping the second portion of the virtual memory when the execution of the entry point code is completed, wherein, after the unmapping, the processor executing the operating system is only permitted to access data from the first portion of the virtual memory based on the mapping and the first encryption scheme.
 13. The system of claim 12, wherein the operations further comprise: receiving a further call for a further entry point of the operating system, wherein the further entry point and data for executing the further entry point is stored in a third portion of the virtual memory and wherein the third portion of the virtual memory is one of the plurality of further portions of the virtual memory; determining a third encryption scheme to be used for encrypting the further entry point and the data for executing the further entry point; and mapping, after receiving the further call, the third portion of the virtual memory for access by the processor executing the operating system, wherein the remaining plurality of further portions of the virtual memory remain unmapped, wherein the processor executing the operating system is only permitted to access data from the first portion of the virtual memory based on the mapping and the first encryption scheme and data from the third portion of the virtual memory based on the mapping and the third encryption scheme and wherein the processor executing the operating system is not permitted to access the plurality of further portions of the virtual memory that remain unmapped.
 14. The system of claim 13, wherein the first and third encryption schemes are one of unique from one another and common to one another.
 15. The system of claim 11, wherein the operations further comprise: generating an exception, if the processor attempts to access data that is not mapped.
 16. The system of claim 11, wherein the first and second encryption schemes are one of unique from one another and common to one another.
 17. The system of claim 11, wherein the first and second encryption schemes utilize first and second encryption keys, respectively.
 18. The system of claim 17, wherein the first and second encryption keys are based upon one of a symmetric key algorithm and a public key protocol.
 19. The system of claim 18, wherein, when with the public key protocol, the memory management unit utilizes a first private key and a second private key to decrypt the software code and the entry point, respectively.
 20. A non-transitory computer-readable storage medium storing a set of instructions that are executable by a processor, the set of instructions, when executed by the processor, causing the processor to perform operations comprising: determining a first encryption scheme to be used for encrypting software code sored in a first portion of the virtual memory; mapping the first portion of the virtual memory storing the software code for access by a processor executing an operating system, wherein the virtual memory comprises the first portion of the virtual memory and a plurality of further portions of the virtual memory and wherein the plurality of further portions of the virtual memory remain unmapped; receiving a call for an entry point of the operating system; determining a second encryption scheme to be used for encrypting the entry point and data for executing the entry point storied in a second portion of the virtual memory, wherein the second portion of the virtual memory is one of the plurality of further portions of the virtual memory; and mapping, after receiving the call, the second portion of the virtual memory for access by the processor executing the operating system, wherein the remaining plurality of further portions of the virtual memory remain unmapped, wherein the processor executing the operating system is only permitted to access data from the first portion of the virtual memory based on the mapping and the first encryption scheme and data from the second portion of the virtual memory based on the mapping and the second encryption scheme and wherein the processor executing the operating system is not permitted to access the plurality of further portions of the virtual memory that remain unmapped. 